<!DOCTYPE html>
<html>
<head>
    <title>测试this</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
      var obj = {
          x: 10,
          fn: function(){
              console.log(this);
              console.log(this.x);
          }
      }
      obj.fn();
      //
       var fn1 = obj.fn;
        fn1();
    </script>
</head>
<body>
    <p>测试this测试this</p>
</body>
</html>